import React, { Component } from 'react'

export default class App extends Component {
  state = {
    value: '🍎'
  }
  handleSelectChange = (e) => {
    console.log(e.target.value)
    this.setState({
      value: e.target.value
    })
  }
  render() {
    return (
      <div>
        <select
        value={this.state.value}
        onChange={this.handleSelectChange}>
          <option value="🍎">🍎</option>
          <option value="🍍">🍍</option>
          <option value="🍉">🍉</option>
          <option value="🍑">🍑</option>
        </select>
      </div>
    )
  }
}
